/*Author : Rozi Kapara Dista*/

package jtk.project4.fleet.field;

import java.awt.Dimension;

import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.button.CheckButton;
import nl.coderight.jazz.form.field.SelectField;

public class AdvancedOptionsField extends GroupControl{
	private CheckButton incTaskField;
	private CheckButton linkPMField;
	private SelectField linkPM2Field;
	
	public AdvancedOptionsField(String bindID){
		setTitle("header.AdvancedOptions");
		setBindID(bindID);
		createFields();
		createLayout();
	}
	
	private void createFields(){
		incTaskField = new CheckButton("Include task with e-mail notifications");
		linkPMField = new CheckButton("Linked PM Service:");
		linkPM2Field = new SelectField<String>("domains","domain");
		linkPM2Field.setPreferredSize(new Dimension(166, 20));
	}
	
	private void createLayout() {
		setLayout(new FormLayout())
		.addField(incTaskField)
		.addRow()
		.addField(linkPMField)
		.addField(linkPM2Field);
	}
	
}
